<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生登录</title>
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/DormitoryManager/css/css-student/login.css">
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/DormitoryManager/css/css-other/icon.css">
    <script type="text/javascript">
        function toIndex()
        {
            window.location.href="http://localhost:8080/DormitoryManager/index.html"
        }

        function toRegister()
        {
            window.location.href="http://localhost:8080/DormitoryManager/html/student/register.html"
        }
    </script>
</head>
<body>
<div id="loginBox">
    <h1>Student Login</h1>
    <form id="loginForm" action="http://localhost:8080/DormitoryManager/mvc/studentLogin.do" method="post">
        <table id="loginTable">
            <tr>
                <td id="tdName"><i id="nameIcon" class="iconfont">&#xe669;</i><input id="inputName" type="text" name="name" placeholder="name"></td>
            </tr>

            <tr>
                <td id="tdPassword"><i id="passwordIcon" class="iconfont">&#xe668;</i><input id="inputPassword" type="password" name="password" placeholder="password"></td>
            </tr>

            <tr>
                <td id="tdSubmit"><input id="inputSubmit" type="submit" value="Sign in" title="点击登录"></td>
            </tr>
        </table>
    </form>
    <br/>
    <i id="toIndex" class="iconfont" title="回到主页" onclick="toIndex()">&#xe619;</i>
    <i id="toRegister" class="iconfont" title="注册学生账户" onclick="toRegister()">&#xe6d6;</i>
</div>
</body>
</html>